package com.homedo.odin.solution.contract.mng;/**
 * Created by liyi on 2018/5/25.
 */

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.homedo.odin.solution.model.base.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author : liyi
 * @program : odin_sol
 * @description : 热搜关键词修改请求
 * @create: 2018-05-25 10-59
 **/
@ApiModel(description = "热搜关键词请求")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class HotKeywordEditReq extends BaseRequest {

    /**
     * 唯一标识
     */
    @ApiModelProperty(value = "热搜关键词ID", required = true)
    private Long id;

    /**
     * 关键词名称
     */
    @ApiModelProperty(value = "关键词名称", required = true)
    @NotNull(message = "关键词名称不能为空")
    private String name;


    /**
     * 是否高亮，0：否，1：是
     */
    @ApiModelProperty(value = "高亮", required = true)
    @NotNull(message = "高亮不能为空")
    @Min(value = 0, message = "高亮异常")
    private Integer highlight;

    @ApiModelProperty(value = "排序值", required = true)
    @NotNull(message = "排序值不能为空")
    @Min(value = 0, message = "排序值异常")
    private Integer sort;


    @ApiModelProperty(value = "修改人UID", required = true)
    @NotNull(message = "修改人UID不能为空")
    @Min(value = 0, message = "修改人UID异常")
    private Long modifiedBy;

    @ApiModelProperty(value = "操作人", required = true)
    @NotNull(message = "操作人不能为空")
    private String operator;

}
